<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Iniuriam: /home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/objet.h File Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Iniuriam
   &#160;<span id="projectnumber">alpha 1</span>
   </div>
   <div id="projectbrief"> RPG futuriste</div>
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>File&#160;Members</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">/home/etu/v/p1115890/LIF7/EncoreUn/iniuriam/src/objet.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdio.h&gt;</code><br/>
<code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &lt;assert.h&gt;</code><br/>
<code>#include &lt;string.h&gt;</code><br/>
<code>#include &lt;SDL/SDL.h&gt;</code><br/>
<code>#include &lt;SDL/SDL_image.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="constante_8h_source.html">constante.h</a>&quot;</code><br/>
</div>
<p><a href="objet_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">struct &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="structObjet.html">Objet</a></td></tr>
<tr><td colspan="2"><h2><a name="func-members"></a>
Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a85e5451866ec5eecce7857bda4d02921">objInit</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const char type)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj n'a pas déjà été initialisé, 0 &lt;= type &lt;= au nombre max d'objet de Objets.txt <br/>
 Postconditions : obj est initialisé avec les paramètres de son type : nom, utilite, portee, degats, protection, description et valeur.  <a href="#a85e5451866ec5eecce7857bda4d02921"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a38425564914a28a8f17eb1f5b71ddce0">objLibere</a> (<a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : obj est libéré  <a href="#a38425564914a28a8f17eb1f5b71ddce0"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a43d66abae299bccabaaf656d8d1c891d">getObjetType</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : retourne le type d'obj.  <a href="#a43d66abae299bccabaaf656d8d1c891d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a4164dd939e5f6be03d5bf94885dde573">getObjetUtilite</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : retourne l'utilité d'obj.  <a href="#a4164dd939e5f6be03d5bf94885dde573"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#acf4ede1243a20581ac4a98f6b774c9da">getObjetUtiliteNom</a> (char *utilite, const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : copie dans utilite l'utilité d'obj.  <a href="#acf4ede1243a20581ac4a98f6b774c9da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a094962059cea47c8ab7cd20d69bc7716">getObjetPortee</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : retourne la portée d'obj.  <a href="#a094962059cea47c8ab7cd20d69bc7716"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#abce0256c265edc34c571b8b529d693f2">getObjetDegats</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : retourne la valeur de dégâts d'obj.  <a href="#abce0256c265edc34c571b8b529d693f2"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">char&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a4ec6253ae71604ee2fe0f6d8b75fc2b4">getObjetProtection</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : retourne la valeur de protection d'obj.  <a href="#a4ec6253ae71604ee2fe0f6d8b75fc2b4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a8af4fd7d579ae20205d6db935fe45d28">getObjetValeur</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : retourne la valeur (prix) d'obj.  <a href="#a8af4fd7d579ae20205d6db935fe45d28"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a46cf3be45659b0941edf9b691baa1150">getObjetNom</a> (char *nom, const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé ; nom est une chaine de longueur &gt;=30 <br/>
 Postconditions : retourne le nom d'obj.  <a href="#a46cf3be45659b0941edf9b691baa1150"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#ab18a94bc117f183747bfeb4efc15e643">getObjetDescription</a> (char *description, const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé, description est une chaine de longueur &gt;=150 <br/>
 Postconditions : copie dans description la description d'obj.  <a href="#ab18a94bc117f183747bfeb4efc15e643"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a9aa1ee3462c1622cda0b23ee32d08c17">setObjetNom</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const char *nom)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : nom est une chaine de longueur &lt;30 <br/>
 Postconditions : change le nom d'obj pour nom.  <a href="#a9aa1ee3462c1622cda0b23ee32d08c17"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a1669c4c2e68c3a6421cc316e78e1e28b">setObjetPortee</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const int portee)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : change la portée d'obj pour portee.  <a href="#a1669c4c2e68c3a6421cc316e78e1e28b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a0a45b57d1ea9cf31029c534a7cab6d5a">setObjetDegats</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const int degats)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : change les degats d'obj pour degats.  <a href="#a0a45b57d1ea9cf31029c534a7cab6d5a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a36db39c915b715bd0030b20b825480ae">setObjetProtection</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const int protection)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : change la protection d'obj pour protection.  <a href="#a36db39c915b715bd0030b20b825480ae"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a871ef28d6fe0d02b058ca78000f45c68">setObjetUtilite</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const int utilite)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : change l'utilité d'obj pour utilite.  <a href="#a871ef28d6fe0d02b058ca78000f45c68"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a2479ce411a57767d34464a485ed71595">setObjetValeur</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const int valeur)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : change la valeur d'obj pour valeur.  <a href="#a2479ce411a57767d34464a485ed71595"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#ae29cc0e2b0191644bedf79a3709e3b42">setObjetDescription</a> (<a class="el" href="structObjet.html">Objet</a> *obj, const char *description)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : nom est une chaine de longueur &lt;150 <br/>
 Postconditions : change la description d'obj pour description.  <a href="#ae29cc0e2b0191644bedf79a3709e3b42"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a1827254703732afacfbddf84fc8c2855">setObjetIcon</a> (<a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : fixe l'icon d'obj en fonction de sa race.  <a href="#a1827254703732afacfbddf84fc8c2855"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a7704431bd30c56b00f2f568d9d163fca">getNbObjet</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : / <br/>
 Postconditions : retourne le nombre d'objet dans Objets.txt +3.  <a href="#a7704431bd30c56b00f2f568d9d163fca"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a95ed72b96f3462e65f2ef27a1000e6c9">initialiserTousLesObjets</a> (<a class="el" href="structObjet.html">Objet</a> **tabObj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : tabObj n'est pas initialisé <br/>
 Postconditions : initialise tous les objets dans tabObj.  <a href="#a95ed72b96f3462e65f2ef27a1000e6c9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a05f25f90c3279f022d265b6dfb01ef6f">libererTousLesObjets</a> (<a class="el" href="structObjet.html">Objet</a> **tabObj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : tabObj est initialisé <br/>
 Postconditions : libère tabObj.  <a href="#a05f25f90c3279f022d265b6dfb01ef6f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#a07dcebb0f2b8013acffbe8a53c5b7463">afficherObjet</a> (const <a class="el" href="structObjet.html">Objet</a> *obj)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : obj est initialisé <br/>
 Postconditions : affiche les caractéristiques d'obj dans la console.  <a href="#a07dcebb0f2b8013acffbe8a53c5b7463"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="objet_8h.html#abd09e1a0fc90d163c3efadfaf37fb16b">copierFichier</a> (char *fichier1, const char *fichier2)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Preconditions : fichier1 et fichier2 sont des noms de fichiers accessibles au programme <br/>
 Postconditions : copie le contenu de fichier2 dans fichier1.  <a href="#abd09e1a0fc90d163c3efadfaf37fb16b"></a><br/></td></tr>
</table>
<hr/><h2>Function Documentation</h2>
<a class="anchor" id="a07dcebb0f2b8013acffbe8a53c5b7463"></a><!-- doxytag: member="objet.h::afficherObjet" ref="a07dcebb0f2b8013acffbe8a53c5b7463" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet_8h.html#a07dcebb0f2b8013acffbe8a53c5b7463">afficherObjet</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : affiche les caractéristiques d'obj dans la console. </p>

</div>
</div>
<a class="anchor" id="abd09e1a0fc90d163c3efadfaf37fb16b"></a><!-- doxytag: member="objet.h::copierFichier" ref="abd09e1a0fc90d163c3efadfaf37fb16b" args="(char *fichier1, const char *fichier2)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a82640b5030711d6960732c9aa49ad239">copierFichier</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>fichier1</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>fichier2</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : fichier1 et fichier2 sont des noms de fichiers accessibles au programme <br/>
 Postconditions : copie le contenu de fichier2 dans fichier1. </p>

</div>
</div>
<a class="anchor" id="a7704431bd30c56b00f2f568d9d163fca"></a><!-- doxytag: member="objet.h::getNbObjet" ref="a7704431bd30c56b00f2f568d9d163fca" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="objet__Editeur_8h.html#a7704431bd30c56b00f2f568d9d163fca">getNbObjet</a> </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : retourne le nombre d'objet dans Objets.txt +3. </p>

</div>
</div>
<a class="anchor" id="abce0256c265edc34c571b8b529d693f2"></a><!-- doxytag: member="objet.h::getObjetDegats" ref="abce0256c265edc34c571b8b529d693f2" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="objet__Editeur_8h.html#ab9c7ce42d48287d2d124bcead11841cc">getObjetDegats</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : retourne la valeur de dégâts d'obj. </p>

</div>
</div>
<a class="anchor" id="ab18a94bc117f183747bfeb4efc15e643"></a><!-- doxytag: member="objet.h::getObjetDescription" ref="ab18a94bc117f183747bfeb4efc15e643" args="(char *description, const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#aa6e2a9c6ae9c2a4787375b4a2c43a366">getObjetDescription</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>description</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé, description est une chaine de longueur &gt;=150 <br/>
 Postconditions : copie dans description la description d'obj. </p>

</div>
</div>
<a class="anchor" id="a46cf3be45659b0941edf9b691baa1150"></a><!-- doxytag: member="objet.h::getObjetNom" ref="a46cf3be45659b0941edf9b691baa1150" args="(char *nom, const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#af9cf5997c94c1ae2306bd74b5da82862">getObjetNom</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>nom</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé ; nom est une chaine de longueur &gt;=30 <br/>
 Postconditions : retourne le nom d'obj. </p>

</div>
</div>
<a class="anchor" id="a094962059cea47c8ab7cd20d69bc7716"></a><!-- doxytag: member="objet.h::getObjetPortee" ref="a094962059cea47c8ab7cd20d69bc7716" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="objet__Editeur_8h.html#a9bdbf06f84a3caaa3977a97582c7ad80">getObjetPortee</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : retourne la portée d'obj. </p>

</div>
</div>
<a class="anchor" id="a4ec6253ae71604ee2fe0f6d8b75fc2b4"></a><!-- doxytag: member="objet.h::getObjetProtection" ref="a4ec6253ae71604ee2fe0f6d8b75fc2b4" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="objet__Editeur_8h.html#a87d56c114e766a0c02e2d846a290fa3c">getObjetProtection</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : retourne la valeur de protection d'obj. </p>

</div>
</div>
<a class="anchor" id="a43d66abae299bccabaaf656d8d1c891d"></a><!-- doxytag: member="objet.h::getObjetType" ref="a43d66abae299bccabaaf656d8d1c891d" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="objet__Editeur_8h.html#a99551801951510d620a18b33e3aab93f">getObjetType</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : retourne le type d'obj. </p>

</div>
</div>
<a class="anchor" id="a4164dd939e5f6be03d5bf94885dde573"></a><!-- doxytag: member="objet.h::getObjetUtilite" ref="a4164dd939e5f6be03d5bf94885dde573" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">char <a class="el" href="objet__Editeur_8h.html#a91997fcd8308a8b9e081397ea836cf4f">getObjetUtilite</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : retourne l'utilité d'obj. </p>

</div>
</div>
<a class="anchor" id="acf4ede1243a20581ac4a98f6b774c9da"></a><!-- doxytag: member="objet.h::getObjetUtiliteNom" ref="acf4ede1243a20581ac4a98f6b774c9da" args="(char *utilite, const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a7144325d49f9a20b7f64dd85b0ecadba">getObjetUtiliteNom</a> </td>
          <td>(</td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>utilite</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : copie dans utilite l'utilité d'obj. </p>

</div>
</div>
<a class="anchor" id="a8af4fd7d579ae20205d6db935fe45d28"></a><!-- doxytag: member="objet.h::getObjetValeur" ref="a8af4fd7d579ae20205d6db935fe45d28" args="(const Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="objet__Editeur_8h.html#a248a9867aa728492bf32c6b69cc63a89">getObjetValeur</a> </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : retourne la valeur (prix) d'obj. </p>

</div>
</div>
<a class="anchor" id="a95ed72b96f3462e65f2ef27a1000e6c9"></a><!-- doxytag: member="objet.h::initialiserTousLesObjets" ref="a95ed72b96f3462e65f2ef27a1000e6c9" args="(Objet **tabObj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a95ed72b96f3462e65f2ef27a1000e6c9">initialiserTousLesObjets</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> **&#160;</td>
          <td class="paramname"><em>tabObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : tabObj n'est pas initialisé <br/>
 Postconditions : initialise tous les objets dans tabObj. </p>

</div>
</div>
<a class="anchor" id="a05f25f90c3279f022d265b6dfb01ef6f"></a><!-- doxytag: member="objet.h::libererTousLesObjets" ref="a05f25f90c3279f022d265b6dfb01ef6f" args="(Objet **tabObj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#af524a8e37b85c6a6ddd0dc151baf8cba">libererTousLesObjets</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> **&#160;</td>
          <td class="paramname"><em>tabObj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : tabObj est initialisé <br/>
 Postconditions : libère tabObj. </p>

</div>
</div>
<a class="anchor" id="a85e5451866ec5eecce7857bda4d02921"></a><!-- doxytag: member="objet.h::objInit" ref="a85e5451866ec5eecce7857bda4d02921" args="(Objet *obj, const char type)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a3e4773268d1384bcfafa8988086a0e7a">objInit</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char&#160;</td>
          <td class="paramname"><em>type</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj n'a pas déjà été initialisé, 0 &lt;= type &lt;= au nombre max d'objet de Objets.txt <br/>
 Postconditions : obj est initialisé avec les paramètres de son type : nom, utilite, portee, degats, protection, description et valeur. </p>
<dl class="author"><dt><b>Author:</b></dt><dd>RODARIE Dimitri, VERSAEVEL Romain, FLORES Isabelle </dd></dl>

</div>
</div>
<a class="anchor" id="a38425564914a28a8f17eb1f5b71ddce0"></a><!-- doxytag: member="objet.h::objLibere" ref="a38425564914a28a8f17eb1f5b71ddce0" args="(Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet_8h.html#a38425564914a28a8f17eb1f5b71ddce0">objLibere</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : obj est libéré </p>

</div>
</div>
<a class="anchor" id="a0a45b57d1ea9cf31029c534a7cab6d5a"></a><!-- doxytag: member="objet.h::setObjetDegats" ref="a0a45b57d1ea9cf31029c534a7cab6d5a" args="(Objet *obj, const int degats)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a9dbbd7aaa9aa148508b550a5d47bd25d">setObjetDegats</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>degats</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : change les degats d'obj pour degats. </p>

</div>
</div>
<a class="anchor" id="ae29cc0e2b0191644bedf79a3709e3b42"></a><!-- doxytag: member="objet.h::setObjetDescription" ref="ae29cc0e2b0191644bedf79a3709e3b42" args="(Objet *obj, const char *description)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#ad0b88e5380ffdb88f6a85f27c3b95819">setObjetDescription</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>description</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : nom est une chaine de longueur &lt;150 <br/>
 Postconditions : change la description d'obj pour description. </p>

</div>
</div>
<a class="anchor" id="a1827254703732afacfbddf84fc8c2855"></a><!-- doxytag: member="objet.h::setObjetIcon" ref="a1827254703732afacfbddf84fc8c2855" args="(Objet *obj)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet_8h.html#a1827254703732afacfbddf84fc8c2855">setObjetIcon</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : obj est initialisé <br/>
 Postconditions : fixe l'icon d'obj en fonction de sa race. </p>

</div>
</div>
<a class="anchor" id="a9aa1ee3462c1622cda0b23ee32d08c17"></a><!-- doxytag: member="objet.h::setObjetNom" ref="a9aa1ee3462c1622cda0b23ee32d08c17" args="(Objet *obj, const char *nom)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#ae3f9dc243301cc5091a8446035302870">setObjetNom</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>nom</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : nom est une chaine de longueur &lt;30 <br/>
 Postconditions : change le nom d'obj pour nom. </p>

</div>
</div>
<a class="anchor" id="a1669c4c2e68c3a6421cc316e78e1e28b"></a><!-- doxytag: member="objet.h::setObjetPortee" ref="a1669c4c2e68c3a6421cc316e78e1e28b" args="(Objet *obj, const int portee)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a562312ee161e6141d7475f5efa35f1f9">setObjetPortee</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>portee</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : change la portée d'obj pour portee. </p>

</div>
</div>
<a class="anchor" id="a36db39c915b715bd0030b20b825480ae"></a><!-- doxytag: member="objet.h::setObjetProtection" ref="a36db39c915b715bd0030b20b825480ae" args="(Objet *obj, const int protection)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a8e5b69ac485b0c72a178142489b835d0">setObjetProtection</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>protection</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : change la protection d'obj pour protection. </p>

</div>
</div>
<a class="anchor" id="a871ef28d6fe0d02b058ca78000f45c68"></a><!-- doxytag: member="objet.h::setObjetUtilite" ref="a871ef28d6fe0d02b058ca78000f45c68" args="(Objet *obj, const int utilite)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#a0c709173795073af49f305629729f8fe">setObjetUtilite</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>utilite</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : change l'utilité d'obj pour utilite. </p>

</div>
</div>
<a class="anchor" id="a2479ce411a57767d34464a485ed71595"></a><!-- doxytag: member="objet.h::setObjetValeur" ref="a2479ce411a57767d34464a485ed71595" args="(Objet *obj, const int valeur)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void <a class="el" href="objet__Editeur_8h.html#ada7fb76175b4a6dd4904d045b381dc80">setObjetValeur</a> </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="structObjet.html">Objet</a> *&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const int&#160;</td>
          <td class="paramname"><em>valeur</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Preconditions : / <br/>
 Postconditions : change la valeur d'obj pour valeur. </p>

</div>
</div>
</div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Defines</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Tue Jun 4 2013 08:45:33 for Iniuriam by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
